<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    {{name}}
    <br>
    {{1+1}}
    <br>
    {{flag?"喜欢":"不喜欢"}}
    <br>
    v-test:
    <span v-text="name"></span>
    <br>
    v-html:
    <span v-html="name"></span>

</div>

<script src="./node_modules/vue/dist/vue.js"></script>
<script >
  var dataObj={
      name:"<h1>刘德华</h1>",
      num: 0,
      flag:true
  }

  var vm=new Vue({
      el:"#app",
      data:dataObj
  });

</script>
</body>
</html>